/**
 * 
 */
package com.gopay.cashier.service.impl;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.gopay.cashier.dao.CertFreeQuotaDao;
import com.gopay.cashier.service.CertFreeQuotaService;
import com.gopay.common.domain.cust.CustCertFreeQuota;

/**
 * @author gaocl
 * @2016年7月6日 下午4:51:31 www.gopay.com.cn Inc.All rights reserved.
 */
@Service("certFreeQuotaService")
public class CertFreeQuotaServiceImpl implements CertFreeQuotaService{
    
    @Resource(name="certFreeQuotaDao")
    CertFreeQuotaDao certFreeQuotaDao;
    
    @Override
    public void saveOrUpdateAll(CustCertFreeQuota custCertFreeQuota){
        List<CustCertFreeQuota> list=new ArrayList<CustCertFreeQuota>();
        list.add(custCertFreeQuota);
        certFreeQuotaDao.saveOrUpdateAll(list);
    }
    @Override
    public CustCertFreeQuota getByCustId(String custId){
        return certFreeQuotaDao.find(CustCertFreeQuota.class, custId);
    }

}
